<template>
	<view class="one">
		<view class="nav">
			<!-- 订单信息板块 -->
			<view class="section-container">
				<view class="order-header">
					<text class="title">订单信息</text>
					<text class="status">已完成</text>
				</view>
				<view class="divider"></view>
				<view class="order-content">
					<view class="info-item">
						<text class="label">订单号：</text>
						<text class="value highlight">12121211248788</text>
					</view>
					<view class="info-item">
						<text class="label">服务项目：</text>
						<text class="value">车辆保养</text>
					</view>
					<view class="info-item">
						<text class="label">服务门店：</text>
						<text class="value">大宝车辆维修店</text>
						<image src="/static/定位@3x.png" mode="aspectFit" class="location-icon"></image>
					</view>
					<view class="info-item">
						<text class="label">下单时间：</text>
						<text class="value">2023-03-08 17:40</text>
					</view>
					<view class="info-item">
						<text class="label">预约时间：</text>
						<text class="value">2023-03-09 17:40</text>
					</view>
					<view class="info-item">
						<text class="label">车辆：</text>
						<text class="value">奔驰FWE4/豫A98FHJ</text>
					</view>
					<view class="info-item">
						<text class="label">备注：</text>
						<text class="value"></text>
					</view>
				</view>
			</view>

			<!-- 订单详情板块 -->
			<view class="section-container">
				<view class="detail-header">
					<text class="title">订单详情</text>
				</view>
				<view class="divider"></view>
				<view class="detail-content">
					<view class="detail-item">
						<text>车辆精洗</text>
						<text class="price">¥39.90</text>
					</view>
					<view class="detail-item with-divider">
						<text>车辆附加费用</text>
						<text class="price">0</text>
					</view>
					<view class="detail-item original-price">
						<text>原价</text>
						<text class="price">¥59.90</text>
					</view>
					<view class="detail-item discount with-divider">
						<text>店家优惠</text>
						<text class="price">-¥20</text>
					</view>
					<view class="detail-item discount">
						<text>优惠券</text>
						<text class="price">-¥10</text>
					</view>
					<view class="divider"></view>
					<view class="detail-item total">
						<text>支付金额</text>
						<text class="price">¥29.9</text>
					</view>
				</view>
			</view>

			<!-- 评价结果板块 -->
			<view class="section-container">
				<view class="rating-header">
					<text class="title">评价结果</text>
				</view>
				<view class="divider"></view>
				<view class="rating-content">
					<view class="info-item">
						<text class="label">评价时间：</text>
						<text class="value">2023-04-10 11:09</text>
					</view>
					<view class="info-item">
						<text class="label">评价结果：</text>
						<uni-rate 
							:value="3" 
							:readonly="true"
							:size="16"
							:allow-half="true"
							active-color="#FFB800"
							:margin="4"
						/>
					</view>
					<view class="info-item">
						<text class="label">评语：</text>
						<text class="value">评语评语评语评语评语评语评语评语评语评语</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
page{
	background:#F7F7F7;
	}  
	.one{
		padding-top: 20rpx;
		height: 200rpx;
		background-color: #2D80F9;
	}
	.nav{
		width: 680rpx;
		min-height: 80vh;
		margin: 0 auto;
		padding: 20rpx;
		background-color: transparent;
	}
	.section-container {
		background-color: #FFFFFF;
		border-radius: 20rpx;
		padding: 30rpx 20rpx;
		margin-bottom: 20rpx;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
	}
	.order-header, .detail-header, .rating-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 10rpx 20rpx;
	}
	.title {
		font-size: 32rpx;
		color: #000000;
		font-weight: 600;
	}
	.status {
		color: #000000;
		font-size: 28rpx;
	}
	.divider {
		height: 2rpx;
		background-color: #EEEEEE;
		margin: 0 10rpx;
	}
	.order-content, .detail-content, .rating-content {
		padding: 20rpx 10rpx 0;
	}
	.info-item {
		display: flex;
		align-items: center;
		margin-bottom: 15rpx;
		font-size: 28rpx;
		color: #666666;
	}
	.label {
		color: #666666;
		min-width: 140rpx;
	}
	.value {
		color: #666666;
		flex: 1;
	}
	.highlight {
		color: #000000;
	}
	.location-icon {
		width: 32rpx;
		height: 32rpx;
		margin-left: 10rpx;
	}
	.detail-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15rpx;
		font-size: 28rpx;
		color: #333;
	}
	.detail-item.with-divider {
		position: relative;
		padding-bottom: 20rpx;
		margin-bottom: 20rpx;
	}
	.detail-item.with-divider::after {
		content: '';
		position: absolute;
		left: -10rpx;
		right: -10rpx;
		bottom: 0;
		height: 2rpx;
		background-color: #E5E5E5;
	}
	.price {
		font-weight: 500;
	}
	.original-price {
		margin-top: 30rpx;
	}
	.discount .price {
		color: #FF5151;
	}
	.total {
		margin-top: 30rpx;
		font-size: 32rpx;
		font-weight: bold;
	}
	.total .price {
		color: #000000;
		font-size: 32rpx;
		font-weight: bold;
	}
</style>
